package com.threeti.mecool.core.domain.model.project;

import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.threeti.jiayusms.framework.domain.support.DefaultDomainEntity;
import com.threeti.mecool.core.domain.model.basicdata.biz.Channel;

/** 项目门店(来自于通路，别名也称为终端) */
@Entity
@Table(name = "DM_PROJECT_STORE")
public class ProjectStore extends DefaultDomainEntity {
  
  @ManyToOne
  @JoinColumn(name="PROJECT_ID")
  private Project project;
  
  @Embedded
  private Channel channel;

  public ProjectStore(Project project, Channel channel) {
    super();
    this.project = project;
    this.channel = channel;
  }

  public Project getProject() {
    return project;
  }

  public Channel getChannel() {
    return channel;
  }

  ProjectStore() {
    super();
  }
  
  
}
